import {defineConfig} from 'vite'
// import removeDevCodePlugin from './plugin/index1'
// import removeTodo from './plugin/clearTodo'
import removeConsoleSafely from 'vite-plugin-remove-console-safe'
console.log(removeConsoleSafely)
export default defineConfig({
  base: './',
  // plugins: [removeDevCodePlugin({
  //   autoImportVue:true,
  //   autoImportLodash:true,
  //   dropConsole:false,
  //   dropDebugger:true
  // })],
  // plugins: [removeDevCodePlugin({
  //   preserve:['error','warn'], //保留console.error和console.warn
  //   dropDebugger:true,
  // })],
  plugins: [removeConsoleSafely()],
})